
//
//  User.swift
//  WeoboWithSteveLi
//
//  Created by SteveLi on 2017/10/6.
//  Copyright © 2017年 李军桦. All rights reserved.
//

import UIKit
/// 用户模型
class User: NSObject {
    /// 用户UID
    var id: Int = 0
    /// 用户昵称
    var screen_name: String?
    /// 用户头像地址（中图），50×50像素
    var profile_image_url: String?
    /// 是否是微博认证用户，即加V用户，true：是，false：否
    var verified_type: Int = 0
    /// 会员等级 0-6
    var mbrank: Int = 0
    init(dict: [String: Any]) {
        super.init()
        setValuesForKeys(dict)
    }
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
    override var description: String {
        let keys = ["id","screen_name","profile_image_url","verified_type","mbrank"]
        return dictionaryWithValues(forKeys: keys).description
    }
}
